package cn.csc.module.member.convert.menu;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.member.controller.app.menu.vo.*;
import cn.csc.module.member.dal.dataobject.menu.MemberMenuDO;

/**
 * 菜单权限 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface MemberMenuConvert {

    MemberMenuConvert INSTANCE = Mappers.getMapper(MemberMenuConvert.class);

    MemberMenuDO convert(AppMemberMenuCreateReqVO bean);

    MemberMenuDO convert(AppMemberMenuUpdateReqVO bean);

    AppMemberMenuRespVO convert(MemberMenuDO bean);

    List<AppMemberMenuRespVO> convertList(List<MemberMenuDO> list);

    PageResult<AppMemberMenuRespVO> convertPage(PageResult<MemberMenuDO> page);

    List<AppMemberMenuExcelVO> convertList02(List<MemberMenuDO> list);

}
